package cn.xinfei.xdecision.common.model.component.decisiontable;

import cn.xinfei.xdecision.common.model.BaseDO;
import cn.xinfei.xdecision.common.model.component.IgnoredParamCheck;
import cn.xinfei.xdecision.common.model.component.decisiontable.vo.DecisionTablesVersionVo;
import cn.xinfei.xdecision.common.utils.enums.enginex.ComponentStatusEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * (DecisionTables)实体类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "t_decision_tables")
public class DecisionTables extends BaseDO implements Serializable {

    @IgnoredParamCheck
    private static final long serialVersionUID = -98465498462309886L;

    private String name;//决策表名称

    private String code;//决策表代码(英文)

    private String description;//决策表描述

    /**
     * @see ComponentStatusEnum
     * 决策表状态
     */
    @IgnoredParamCheck
    private Integer status;

    @IgnoredParamCheck
    @TableField(exist = false)
    private String creatorName;//创建者名称

    private Long organId;//所属组织id

    private Long folderId;//文件id

    @IgnoredParamCheck
    @TableField(exist = false)
    private List<Long> parentIds;//文件id集合

    @TableField(exist = false)
    private DecisionTablesVersionVo executeVersion;
}
